/* 博客编辑页样式 */
.content-edit {
    width: 85%;
    max-width: 1200px;
    height: calc(100% - 50px);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-edit .push {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-edit .push #title {
    width: 100%;
    height: 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    outline: none;
}

.edit-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.edit-actions button {
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.draft-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.draft-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
}

.preview-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.preview-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    color: #666;
}

.word-count {
    display: flex;
    gap: 15px;
}

.last-saved {
    font-style: italic;
}

#titleCount {
    font-weight: bold;
}

#contentCount {
    font-weight: bold;
    color: #007bff;
}

/* 编辑器容器样式 */
#editor {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    height: calc(100vh - 200px);
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
}

/* 编辑器内部样式覆盖 */
#editor .editormd {
    border: none;
    border-radius: 0;
}

#editor .editormd-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 15px;
}

#editor .editormd-preview {
    background: #fafafa;
}

#editor .CodeMirror {
    background: white;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}

#editor .CodeMirror-scroll {
    padding: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-edit {
        width: 95%;
        margin: 10px auto;
        height: calc(100vh - 70px);
    }
    
    .content-edit .push {
        padding: 15px;
    }
    
    .edit-actions {
        justify-content: center;
    }
    
    .edit-actions button {
        flex: 1;
        min-width: 80px;
        font-size: 12px;
        padding: 0 10px;
    }
    
    .editor-toolbar {
        flex-direction: column;
        gap: 5px;
        padding: 8px 15px;
    }
    
    #editor {
        height: calc(100vh - 280px);
    }
}